Fwd: [PATCH] md: remove ro check in md_check_recovery()

Forwarding to linux-raid

-------- Original Message --------
Subject: [PATCH] md: remove ro check in md_check_recovery()
Date: Thu, 7 Jul 2011 05:41:06 +0900
From: Namhyung Kim <namhyung [at] gmail.com>
To: Neil Brown <neilb [at] suse.de>
CC: linux-raid [at] vger.kernel.org



Commit c89a8eee6154 ("Allow faulty devices to be removed from a
readonly array.") added some work on ro array in the function,
but it couldn't be done since we didn't allow the ro array to be
handled from the beginning. Fix it.

Signed-off-by: Namhyung Kim<namhyung [at] gmail.com>
---
drivers/md/md.c | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/drivers/md/md.c b/drivers/md/md.c
index 53e8d75314c3..a4022e679b63 100644
--- a/drivers/md/md.c
+++ b/drivers/md/md.c
[at] [at] -7179,9 +7179,6 [at] [at] void md_check_recovery(mddev_t *mddev)
if (mddev->bitmap)
bitmap_daemon_work(mddev);

- if (mddev->ro)
- return;
-
if (signal_pending(current)) {
if (mddev->pers->sync_request&& !mddev->external) {
printk(KERN_INFO "md: %s in immediate safe mode\n",
--
1.7.6

--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo [at] vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html


--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo [at] vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Jan Ceuleers [ Sa, 09 Juli 2011 12:00 ] [ ID #2061854 ]
Linux » gmane.linux.raid » Fwd: [PATCH] md: remove ro check in md_check_recovery()

Vorheriges Thema: dm-crypt over raid6 unreadable after crash
Nächstes Thema: Help with recovering resized raid where machine crashed while PENDING